<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Login extends Model
{
   protected $table='user';
    //登录
    public static function loginData($postData){
        return self::where('username',$postData)
            ->whereOr('email',$postData)
            ->whereOr('tel',$postData)
            ->find();
    }
}
